home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Modules / getbuildinfo.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-10  |  805 b   |  55 lines

  1. #include "config.h"
  2. #include "myproto.h"
  3.  
  4. #ifdef macintosh
  5. #include "macbuildno.h"
  6. #endif
  7.  
  8. #ifndef DONT_HAVE_STDIO_H
  9. #include <stdio.h>
  10. #endif
  11.  
  12. #ifndef DATE
  13. #ifdef __DATE__
  14. #define DATE __DATE__
  15. #else
  16. #define DATE "xx/xx/xx"
  17. #endif
  18. #endif
  19.  
  20. #ifndef TIME
  21. #ifdef __TIME__
  22. #define TIME __TIME__
  23. #else
  24. #define TIME "xx:xx:xx"
  25. #endif
  26. #endif
  27.  
  28. #ifndef BUILD
  29. #define BUILD 0
  30. #endif
  31.  
  32.  
  33. const char *
  34. Py_GetBuildInfo Py_PROTO((void))
  35. {
  36.     static char buildinfo[50];
  37.     sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME);
  38.     return buildinfo;
  39. }
  40.  
  41. #ifdef _AMIGA
  42. #include "patchlevel.h"
  43. /* AmigaDOS version string */
  44. static const char ver[] = "$VER: Python " PATCHLEVEL " " __AMIGADATE__
  45. #ifdef AMITCP
  46.  " AmiTCP";
  47. #else
  48. #ifdef INET225
  49.  " I-Net225";
  50. #else
  51.  "";
  52. #endif /* INET225 */
  53. #endif /* AMITCP */
  54. #endif /* _AMIGA */
  55.